//
//	GetInterviewedListSkill.m
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "GetInterviewedListSkill.h"

NSString *const kGetInterviewedListSkillExpectedScore = @"expectedScore";
NSString *const kGetInterviewedListSkillSkillId = @"skillId";
NSString *const kGetInterviewedListSkillSkillName = @"skillName";

@interface GetInterviewedListSkill ()
@end
@implementation GetInterviewedListSkill




/**
 * Instantiate the instance using the passed dictionary values to set the properties values
 */

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
	self = [super init];
	if(![dictionary[kGetInterviewedListSkillExpectedScore] isKindOfClass:[NSNull class]]){
		self.expectedScore = [dictionary[kGetInterviewedListSkillExpectedScore] floatValue];
	}

	if(![dictionary[kGetInterviewedListSkillSkillId] isKindOfClass:[NSNull class]]){
		self.skillId = [dictionary[kGetInterviewedListSkillSkillId] integerValue];
	}

	if(![dictionary[kGetInterviewedListSkillSkillName] isKindOfClass:[NSNull class]]){
		self.skillName = dictionary[kGetInterviewedListSkillSkillName];
	}	
	return self;
}


/**
 * Returns all the available property values in the form of NSDictionary object where the key is the approperiate json key and the value is the value of the corresponding property
 */
-(NSDictionary *)toDictionary
{
	NSMutableDictionary * dictionary = [NSMutableDictionary dictionary];
	dictionary[kGetInterviewedListSkillExpectedScore] = @(self.expectedScore);
	dictionary[kGetInterviewedListSkillSkillId] = @(self.skillId);
	if(self.skillName != nil){
		dictionary[kGetInterviewedListSkillSkillName] = self.skillName;
	}
	return dictionary;

}

/**
 * Implementation of NSCoding encoding method
 */
/**
 * Returns all the available property values in the form of NSDictionary object where the key is the approperiate json key and the value is the value of the corresponding property
 */
- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:@(self.expectedScore) forKey:kGetInterviewedListSkillExpectedScore];	[aCoder encodeObject:@(self.skillId) forKey:kGetInterviewedListSkillSkillId];	if(self.skillName != nil){
		[aCoder encodeObject:self.skillName forKey:kGetInterviewedListSkillSkillName];
	}

}

/**
 * Implementation of NSCoding initWithCoder: method
 */
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
	self = [super init];
	self.expectedScore = [[aDecoder decodeObjectForKey:kGetInterviewedListSkillExpectedScore] floatValue];
	self.skillId = [[aDecoder decodeObjectForKey:kGetInterviewedListSkillSkillId] integerValue];
	self.skillName = [aDecoder decodeObjectForKey:kGetInterviewedListSkillSkillName];
	return self;

}

/**
 * Implementation of NSCopying copyWithZone: method
 */
- (instancetype)copyWithZone:(NSZone *)zone
{
	GetInterviewedListSkill *copy = [GetInterviewedListSkill new];

	copy.expectedScore = self.expectedScore;
	copy.skillId = self.skillId;
	copy.skillName = [self.skillName copyWithZone:zone];

	return copy;
}
@end